import { DefaultOptionType } from "antd/es/select";

/**
 * @description: 公用常量
 */

/**
 * 颜色
 */
export enum colors {
	success = "green",
	primary = "#005EFF",
	warning = "#FFB706",
	danger = "#FD4B3F",
	info = "#909399"
}

export interface Constant extends Omit<DefaultOptionType, "children"> {
	value: string | number;
	label: string;
	color?: colors;
	children?: Constant[];
}

// 日期格式化
export const DATE_FORMAT = "YYYY-MM-DD";
export const TIME_FORMAT = "YYYY-MM-DD hh:mm:ss";
